<B:UIWS x:Class="WPFExcelReport.UWS03GTT"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:B="clr-namespace:WPFExcelReport;assembly=TWASTAMM"  
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"  
                    xmlns:SD="clr-namespace:WPFExcelReport;assembly=TSDDAT" 
                    xmlns:LS="clr-namespace:WPFExcelReport;assembly=TLIEFDAT" 
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                   x:Name="TV"
                    Loaded="Window_Loaded" 
      >
    <B:UIWS.Resources>
        <CollectionViewSource  x:Key="vwMaster"  />
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:NOTBoolToVisibilityConverter x:Key="nbv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:Divideby10000  x:Key="dw"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:NOTConverter  x:Key="not"/>
        <ucd:PNumConverter  x:Key="pnum"/> 
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
    </B:UIWS.Resources>
    <Grid >
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="Auto"></RowDefinition>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"></ColumnDefinition>
            <ColumnDefinition Width="Auto"></ColumnDefinition>
            <ColumnDefinition Width="Auto"></ColumnDefinition>
            <ColumnDefinition Width="Auto"></ColumnDefinition>
            <ColumnDefinition Width="Auto"></ColumnDefinition>
            <ColumnDefinition Width="Auto"></ColumnDefinition>
        </Grid.ColumnDefinitions>
         
        <Grid Grid.Row="1" Grid.Column="1">
            <WrapPanel>
                <TextBlock Text="{Binding Source={Localization:Translate Word=密度:}}"/>
                <SD:TSSD0181  Margin="0,5,0,0" Grid.Row="1" Grid.Column="2" Name="c181"   
                                  LMS="CM;"
                                  KEY="{Binding DENUM,ElementName=TV}"  
                                  IsEdit="{Binding IsEdit,ElementName=TV}" />
            </WrapPanel>
        </Grid>
        <Grid Grid.Row="2" Grid.Column="1" >
            <TextBox Text="{Binding WAFDDIM}" Width="30"/>
        </Grid> 
        <Grid Grid.Row="0" Grid.RowSpan="3" Grid.Column="3"  >
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions> 
                <ColumnDefinition Width="60"></ColumnDefinition>
                <ColumnDefinition Width="60"></ColumnDefinition> 
            </Grid.ColumnDefinitions>
            <TextBlock Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3" Text="{Binding Source={Localization:Translate Word=经密}}" HorizontalAlignment="Center"/> 
            <TextBlock Grid.Row="1" Grid.Column="0" Text="{Binding Source={Localization:Translate Word=坯布}}"/>
            <TextBlock Grid.Row="1" Grid.Column="1" Text="{Binding Source={Localization:Translate Word=成品}}"/> 
            <ex:NumericBox Grid.Row="2" Grid.Column="0" Text="{Binding WARFDDIK,Converter={StaticResource ResourceKey=d100}}" IsReadOnly="{Binding IsEdit,ElementName=TV,Converter={StaticResource not}}"/>
            <ex:NumericBox Grid.Row="2" Grid.Column="1" Text="{Binding WAFFDDIK,Converter={StaticResource ResourceKey=d100}}" IsReadOnly="{Binding IsEdit,ElementName=TV,Converter={StaticResource not}}"  />
        </Grid>
        <Grid Grid.Row="0" Grid.RowSpan="3" Grid.Column="4" >
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="60"></ColumnDefinition>
                <ColumnDefinition Width="60"></ColumnDefinition> 
            </Grid.ColumnDefinitions>
            <TextBlock Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3" 
                       Text="{Binding Source={Localization:Translate Word=纬密}}" HorizontalAlignment="Center"/> 
            <TextBlock Grid.Row="1" Grid.Column="0" Text="{Binding Source={Localization:Translate Word=坯布}}"/>
            <TextBlock Grid.Row="1" Grid.Column="1" Text="{Binding Source={Localization:Translate Word=成品}}"/> 
            <ex:NumericBox Grid.Row="2" Grid.Column="0" Text="{Binding WARFDDIS,Converter={StaticResource ResourceKey=d100}}" 
                           IsReadOnly="{Binding IsEdit,ElementName=TV,Converter={StaticResource not}}"/>
            <ex:NumericBox Grid.Row="2" Grid.Column="1" Text="{Binding WAFFDDIS,Converter={StaticResource ResourceKey=d100}}" 
                           IsReadOnly="{Binding IsEdit,ElementName=TV,Converter={StaticResource not}}"  />
        </Grid>
        <Grid Grid.Row="0" Grid.RowSpan="3" Grid.Column="5"   >
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions> 
                <ColumnDefinition Width="60"></ColumnDefinition>
                <ColumnDefinition Width="60"></ColumnDefinition>
            </Grid.ColumnDefinitions>
            <TextBlock Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3" Text="{Binding Source={Localization:Translate Word=幅宽cm}}" HorizontalAlignment="Center"/> 
            <TextBlock Grid.Row="1" Grid.Column="0" Text="{Binding Source={Localization:Translate Word=坯布}}"/>
            <TextBlock Grid.Row="1" Grid.Column="1" Text="{Binding Source={Localization:Translate Word=成品}}"/> 
            <ex:NumericBox Grid.Row="2" Grid.Column="0" Text="{Binding RWBRT,Converter={StaticResource ResourceKey=d10},ElementName=TV}" 
                               IsReadOnly="{Binding IsEdit,ElementName=TV,Converter={StaticResource not}}"/>
            <ex:NumericBox Grid.Row="2" Grid.Column="1" Text="{Binding FBRTU,Converter={StaticResource ResourceKey=d10},ElementName=TV}" 
                               IsReadOnly="{Binding IsEdit,ElementName=TV,Converter={StaticResource not}}" />
        </Grid>

    </Grid>
</B:UIWS>
